﻿namespace ICMRemoteEdu
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;

    [Serializable]
    public class ICMCourse : ICMObject
    {
        private List<ICMPartition> _partitions;
        private List<ICMQuestion> _questions;
        private string _userName;

        public ICMCourse()
        {
            this._questions = new List<ICMQuestion>();
            this._partitions = new List<ICMPartition>();
            this._userName = Environment.UserName;
        }

        public ICMCourse(string text) : base(text)
        {
            this._questions = new List<ICMQuestion>();
            this._partitions = new List<ICMPartition>();
            this._userName = Environment.UserName;
        }

        public object Clone()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        [DisplayName("Список разделов"), Description("В данном меню необходимо ввести список разделов по текущей теме")]
        public List<ICMPartition> Partitions
        {
            get
            {
                return this._partitions;
            }
        }

        [Description("В данном меню необходимо добавить необходимые вопросы по текущей теме"), DisplayName("Список вопросов")]
        public List<ICMQuestion> Questions
        {
            get
            {
                return this._questions;
            }
        }

        public string UserName
        {
            get
            {
                return this._userName;
            }
            set
            {
                this._userName = value;
            }
        }
    }
}

